var divStyle = document.createElement('div').style;
$.support.rotation = divStyle.WebkitTransform === '' ? 'WebkitTransform' : (divStyle.MozTransform === '' ? 'MozTransform' : false);

if($.support.rotation) {
    $.cssHooks.rotation = {
        get: function( elem, computed, extra ) {
            var val = elem.style[$.support.rotation].match(/rotate\((-?\d+\.?\d*)deg\)/);
            return val !== null && val !== 0 ? val[1] : 0;
        },
        set: function( elem, value ) {
            elem.style[$.support.rotation] = 'rotate('+value.split('px')[0]+'deg)';
        }
    };
    $.fx.step[ 'rotation' ]  = function( fx ) {
	$.cssHooks['rotation'].set( fx.elem, fx.now + fx.unit);
    };
}